-----------------------------------------
-- ID: 5431
-- Item: Dusty Potion
-- Item Effect: Restores 150 HP
-----------------------------------------

require("scripts/globals/settings");
require("scripts/globals/status");

-----------------------------------------
-- OnItemCheck
-----------------------------------------

function onItemCheck(target)
    local result = 0;
    local mHP = target:getMaxHP();
    local cHP = target:getHP();
    if (mHP == cHP) then
        result = 56; -- Does not let player use item if their hp is full
    end
    return result;
end;

-----------------------------------------
-- OnItemUse
-----------------------------------------

function onItemUse(target)
    target:addHP(150*ITEM_POWER);
    target:messageBasic(24,0,150);
end;